package Thread;

public class ThreadDemo14 {
    public static void main(String[] args) {

        Object locker = new Object();

        Thread thread = new Thread(() -> {
            synchronized (locker) {
                synchronized (locker) {
                    System.out.println("thread");
                }
            }
        });

        thread.start();
    }
}
